"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require("react");
var electron = require('electron');
var Obj = require('object-assign');
var R____1 = require('../../核心代码/R控件基类');
var ipcR = electron.ipcRenderer;
var R悬浮提示标签 = (function (_super) {
    __extends(R悬浮提示标签, _super);
    function R悬浮提示标签(props) {
        var _this = this;
        _super.call(this, props);
        this.state = {
            是否显示: false
        };
        this.标准样式 = this.props.自定义样式 ? this.props.自定义样式 : Obj({}, this.标准样式, {
            whiteSpace: 'nowrap',
            padding: '5px 15px'
        });
        ipcR.on('悬浮提示标签_显示', function () {
            _this.setState({ 是否显示: true });
        });
        ipcR.on('悬浮提示标签_隐藏', function () {
            _this.setState({ 是否显示: false });
        });
    }
    R悬浮提示标签.prototype.render = function () {
        return (React.createElement("div", {id: this.props.父元素唯一标识, style: this.state.使用样式}, this.props.悬浮提示语));
    };
    return R悬浮提示标签;
}(R____1.default));
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = R悬浮提示标签;
